<%--
  Created by IntelliJ IDEA.
  User: 86492
  Date: 2022/4/10
  Time: 15:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<html>
<head>
    <meta charset="utf-8">
    <title>主页</title>
    <link rel="stylesheet" href="css/newindex.css" type="text/css">

</head>
<body>
    <div class="leftIndex">
        <div>
            <img src="getUserImg" />
            <span>${user_login.name}</span>
        </div>

        <c:if test="${fn:contains(user_login.powers,'1' )}">
             <button onclick="javascript:location='newIndex.jsp?srcs=querystu';">查询学生</button>
        </c:if>

        <c:if test="${fn:contains(user_login.powers,'2' )}">
            <button onclick="javascript:location='newIndex.jsp?srcs=addstudent.jsp';">新增学生</button>
        </c:if>

        <button onclick="javascript:location='newIndex.jsp?srcs=queryStudentClass';">班级管理</button>
        <button onclick="javascript:location='outLogin';">退出登录</button>

    </div>
    <div class="rightIndex" style="background-color: #e4dfdc">
        <iframe src=${param.srcs}></iframe>
    </div>
</body>
</html>
